package com.vichat.business.entity;


import javax.persistence.*;
import java.util.List;

/***************
 *author: autogen
 *version: 2018-12-28 15:08:14.9
 */
@Entity
@Table(name = "district_fence",catalog = "businessdb")
public class DistrictFence implements java.io.Serializable{

	private static final long serialVersionUID = 1L;

	public static final long FENCE_TYPE_ENTER = 1L;//进入围栏告警
	public static final long FENCE_TYPE_EXIT = 2L;//离开围栏告警

    public static final String TABLE = "district_fence";

    /**围栏ID */
	public static final String ALIAS_FENCE_ID = "fence_id";
    /**围栏名称 */
	public static final String ALIAS_FENCE_NAME = "fence_name";
    /**围栏描述 */
	public static final String ALIAS_FENCE_DESC = "fence_desc";
    /**围栏枚举类型 1 禁入 2 禁出 */
	public static final String ALIAS_FENCE_TYPE = "fence_type";
    /**围栏坐标 */
	public static final String ALIAS_REGCOORDS = "regCoords";
    /**数据 0 无效 1 有效 */
	public static final String ALIAS_STATE = "state";
    /**企业编号 */
	public static final String ALIAS_PARTY_ID = "party_id";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "fence_id", unique = true, nullable = false)
    public java.lang.Long fenceId;
  
 	@Column(name = "fence_name")
    public java.lang.String fenceName;
  
 	@Column(name = "fence_desc")
    public java.lang.String fenceDesc;
  
 	@Column(name = "fence_type")
    public java.lang.Long fenceType;
  
 	@Column(name = "regCoords")
    public java.lang.String regcoords;
  
 	@Column(name = "state")
    public java.lang.Long state = 1l;
  
 	@Column(name = "party_id")
    public java.lang.Long partyId;
  





	public java.lang.Long getFenceId() {
		return this.fenceId;
	}
	
	public void setFenceId(java.lang.Long value) {
		this.fenceId = value;
	}

	public java.lang.String getFenceName() {
		return this.fenceName;
	}
	
	public void setFenceName(java.lang.String value) {
		this.fenceName = value;
	}

	public java.lang.String getFenceDesc() {
		return this.fenceDesc;
	}
	
	public void setFenceDesc(java.lang.String value) {
		this.fenceDesc = value;
	}

	public java.lang.Long getFenceType() {
		return this.fenceType;
	}
	
	public void setFenceType(java.lang.Long value) {
		this.fenceType = value;
	}

	public java.lang.String getRegcoords() {
		return this.regcoords;
	}
	
	public void setRegcoords(java.lang.String value) {
		this.regcoords = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}

	public java.lang.Long getPartyId() {
		return this.partyId;
	}
	
	public void setPartyId(java.lang.Long value) {
		this.partyId = value;
	}


	
	public DistrictFence() {
	}
	
	public DistrictFence(boolean qryflag) {
	    if(qryflag){
	    		this.fenceId = null;
				this.fenceName = null;
				this.fenceDesc = null;
				this.fenceType = null;
				this.regcoords = null;
				this.state = null;
				this.partyId = null;
			    }
	}


	public DistrictFence(
	    java.lang.Long inFenceId,
	    java.lang.String inFenceName,
	    java.lang.String inFenceDesc,
	    java.lang.Long inFenceType,
	    java.lang.String inRegcoords,
	    java.lang.Long inState,
		java.lang.Long inPartyId
	 ) {
		super();
				this.fenceId = inFenceId;
				this.fenceName = inFenceName;
				this.fenceDesc = inFenceDesc;
				this.fenceType = inFenceType;
				this.regcoords = inRegcoords;
				this.state = inState;
				this.partyId = inPartyId;
			}

	@Transient
	private List<DistrictFenceUser> userList;
	@Transient
	private List<DistrictFenceRule> ruleList;

	public List<DistrictFenceUser> getUserList() {
		return userList;
	}

	public void setUserList(List<DistrictFenceUser> userList) {
		this.userList = userList;
	}

	public List<DistrictFenceRule> getRuleList() {
		return ruleList;
	}

	public void setRuleList(List<DistrictFenceRule> ruleList) {
		this.ruleList = ruleList;
	}
}

